package com.service.impl;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dao.EmpDao;
import com.model.Emp;
import com.service.EmpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("empService")
public class EmpServiceImpl extends ServiceImpl<EmpDao, Emp> implements EmpService {
        @Autowired(required = false)
        private EmpDao empDao;

    public Page<Emp> listPage(Page page) {

        return empDao.listPage(page);
    }

    public Page<Emp> listPage(Page page,Emp emp) {

        return empDao.listPage(page,emp);
    }
}
